package com.itcast.springboot.waste_recovery.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 购物车
 * </p>
 *
 * @author 小破烂
 * @since 2020-08-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ShoppingCart对象", description="购物车")
public class ShoppingCart implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "购物车id")
      @TableId(value = "shopping_cart_id", type = IdType.AUTO)
    private Integer shoppingCartId;

    @ApiModelProperty(value = "购物车该废品数量")
    private Integer cartWasteNum;

    @ApiModelProperty(value = "购物车该废品id")
    private Integer cartWasteId;

    @ApiModelProperty(value = "该购物车所属用户id")
    private Integer cartUserId;

    @ApiModelProperty(value = "购物车该废品总价格")
    private Float cartPrice;

    @ApiModelProperty(value = "购物车总价格")
    private Float cartTotalPrice;
}
